<script language="javascript" type="text/javascript">
'global.CodResolucao'.namespace ();

global.CodResolucao.ajax = <?= class_exists ('xCodResolucao', FALSE) ? XOAD_Client::register (new xCodResolucao) : 'null' ?>;
    
global.CodResolucao.load = function (codigoSetor)
{
        
	var CodResolucao;

	CodResolucao = $('field_cpcx__resolucao_protocolo');

        var codSetor;

        codSetor=$("field_cpcx__resolucao_setorid");

	CodResolucao.value = '';
        
	if( codigoSetor != 0){
		CodResolucao.value = global.CodResolucao.ajax.loadCodigo(codigoSetor);
                codSetor.value=codigoSetor;
        }
}
function runOnLoad ()
{
	if($('field_cpcx__resolucao_protocolo'))
		$('field_cpcx__resolucao_protocolo').readOnly = true;

}
</script>
